<!-- index.rhtml -->
You first visited this site on <%= session[:user] %>.
<br></br>
<% form_tag '/user/logout' do -%>
  <div><%= submit_tag 'logout' %></div>
<% end -%>

